package com.adcc.ags.cgw.service;

import com.adcc.ags.cgw.entity.msg.CGWMsg;
import com.adcc.ags.cgw.entity.user.User;
import com.adcc.utility.mq.transfer.MQTransfer;
import com.google.common.base.Optional;

/**
 * 消息接收服务
 */
public abstract class MsgReceiverService extends BaseActorService{

    /**
     * 接收报文
     * @param user
     * @return
     */
    protected abstract Optional<CGWMsg> receiveMsg(MQTransfer transfer,User user);
}
